var express = require('express');
var router = express.Router();
let teacherControll = require('../controller/teacherControll');
/* GET home page. */
// router.get('/', function(req, res, next) {

//   location.href="../public/index.html";
//   // res.render('index', { title: 'Express' });
// });

//初始数据
router.post('/all',teacherControll.all);

//删除老师
router.post('/del',teacherControll.del);

//新增老师
router.post('/add',teacherControll.add);

//编辑老师信息
router.post('/edit',teacherControll.edit);

//查询某个老师详细信息
router.post('/getTeacher',teacherControll.getTeacher);

//编辑赋值
router.post('/getOneTeacher',teacherControll.getOneTeacher);

module.exports = router;